<wxs src="../../utils/common.wxs" module="filter" />
<toast wx:if='{{showToast}}' bindloginSuccess="onLoginSuccess" bindcannel='onCannel'></toast>

<view class='floatPage' wx:if='{{showA}}'>
     <view class='aa'>
        <image class='img'  src="http://qn.shebeib.com/yaoqingshouye.png" bindtap='turnInvitation'></image>
        <image class='img1'  src="../../image/close_button.png" bindtap='closeInvitation'></image>
     </view>
</view>

<view class='page'>
	 <view id='search'>
	 	<view class="searchView" bindtap='toSearch'>
	 		<image class='seach-icon'  src="../../image/home/seach.png" />
	 		<label>请输入商品名称</label>
	 	</view>
	 	  <view class="page-section-spacing">
        <scroll-view class="scroll-view_H"   scroll-x="true" bindscroll="scroll" style="width: 100%">
          <view  bindtap='chooseType'  data-id='{{item.id}}' id='{{"id"+index}}' wx:for='{{menuList}}' class="scroll-view-item_H  {{selectId==item.id?'select':'nomal'}} ">{{item.name}} <label class="{{selectId==item.id?'show':'hide'}}"></label></view>
        </scroll-view>
      </view>
	 </view>
	 <view class='itemView'>
	 	 <view  class='item' wx:for='{{goodsList}}' bindtap='turnDetail' data-code='{{item.id}}'>
	 	 	<image  src="{{item.pic}}" />
	 	 	<view class='note'>
		 	 	<view class='title'>{{item.name}}</view>
		 	 	<view class='money'><label>¥</label>{{filter.fitPrice(item.amount)}}</view>
		 	 	<view class='msg'><label>送货上门</label><label wx:if='{{item.activity}}'>{{item.activity}}</label></view>
		 	</view> 	
		 	<view class='item-bottom'><label>{{item.companyName}}</label><label>{{item.city}}</label> </view>
	 	 </view>
	 </view>
	 <!-- <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号</button> -->
	 <!-- <view class='marketLogo' bindtap='turnPage'>
	 	<image  src="../../image/shopMarket/shopping_cart.png" />
        
	 	 <label>{{num}}</label>
	 </view> -->

	 <view class='marketLogo1' bindtap='turnPage1'>
	 	<image  src="../../image/coupon/polite_invitation.png" />
        
	 	 <!-- <label>{{num}}</label> -->
	 </view>
</view>
